-- GENERATED SPELL FOR [Unyielding Footman] --


function spell0_16904(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16904', 8338, 1)
end

function spell1_16904(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16904', 551, 1)
end

function Sorts_16904(pUnit, Event)
local choix_sorts_16904 = math.random(0, 1)
if choix_sorts_16904 == 0 then
pUnit:RegisterEvent('spell0_16904', 1, 1)
end
if choix_sorts_16904 == 1 then
pUnit:RegisterEvent('spell1_16904', 1, 1)
end
end

function mob16904_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16904', math.random(1500, 3000), 1)
end

function mob16904_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16904_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16904_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16904, 1, 'mob16904_Action')
RegisterUnitEvent(16904, 2, 'mob16904_Leave')
RegisterUnitEvent(16904, 3, 'mob16904_Kill')
RegisterUnitEvent(16904, 4, 'mob16904_Die')
